package com.taglab.chic.nonblocking;

import org.springframework.aop.support.DefaultPointcutAdvisor;
import org.springframework.aop.support.annotation.AnnotationMatchingPointcut;

/**
 *
 */
public class NonBlockingCachingAdvisor extends DefaultPointcutAdvisor {

  private static final long serialVersionUID = 697605476722075815L;

  public NonBlockingCachingAdvisor() {
    setPointcut(AnnotationMatchingPointcut.forMethodAnnotation(NonBlockingCacheable.class));
  }

  public void setCachingMethodInterceptor(NonBlockingCachingMethodInterceptor interceptor) {
    setAdvice(interceptor);
  }

}
